﻿
@model RTW.OA.Models.user
@{

    Layout = "~/Views/Shared/_LayoutBase.cshtml";
}

@section styles{

}
<div id="dMain">
    <div class="wrapper wrapper-content animated fadeInRight">
        <div class="ibox" style="margin-bottom: 0px;">
            <div class="ibox-title">
                <h4>@ViewBag.Title </h4>
            </div>
            <div class="ibox-content">
                @using (Html.BeginForm("Edit", "Setting", FormMethod.Post, new { area = "Personal", id = "settingfrom", name = "settingfrom" }))
                {
                    @Html.AntiForgeryToken()
				
                    <div class="from-content">
						     <dl>
                            <dt>用户名</dt>
                            <dd>
							    @Html.EditorFor(m => m.USER_NAME, new { htmlAttributes = new { @class = "input normal form-control"  ,datatype="*", nullmsg=" ", errormsg=" ", sucmsg=" "} })
                            </dd>
                        </dl>
					        <dl>
                            <dt>用户密码</dt>
                            <dd>
							    @Html.EditorFor(m => m.USER_PWD, new { htmlAttributes = new { @class = "input normal form-control"  } })
                            </dd>
                        </dl>
					   <dl>
                            <dt>用户真实姓名</dt>
                            <dd>
							    @Html.EditorFor(m => m.TRUE_NAME, new { htmlAttributes = new { @class = "input normal form-control"  } })
                            </dd>
                        </dl>
			             <dl>
                            <dt>登录名</dt>
                            <dd>
							    @Html.EditorFor(m => m.USER_NO, new { htmlAttributes = new { @class = "input normal form-control"  } })
                            </dd>
                        </dl>
			            <dl>
                            <dt>用户姓名索引</dt>
                            <dd>
							    @Html.EditorFor(m => m.USER_NAME_INDEX, new { htmlAttributes = new { @class = "input normal form-control"  } })
                            </dd>
                        </dl>
																																																																																																																																																																		                        <dl>
                            <dt>生日</dt>
                            <dd>
							    @Html.EditorFor(m => m.BIRTHDAY, new { htmlAttributes = new { @Class = "input rule-date-input form-control", onfocus = "WdatePicker({ dateFmt: 'yyyy-MM-dd HH:mm:ss'})"  } })
                            </dd>
                        </dl>
																			                        <dl>
                            <dt>性别</dt>
                            <dd>
							    <div class="rule-single-select">@Html.DropDownListFor(m => m.SEX, ViewBag.SEXData as List<SelectListItem>, new { @Class = "form-control"  })</div>
                            </dd>
                        </dl>
																			                        <dl>
                            <dt>工作电话</dt>
                            <dd>
							    @Html.EditorFor(m => m.TEL_NO_DEPT, new { htmlAttributes = new { @class = "input normal form-control"  } })
                            </dd>
                        </dl>
																			                        <dl>
                            <dt>工作传真</dt>
                            <dd>
							    @Html.EditorFor(m => m.FAX_NO_DEPT, new { htmlAttributes = new { @class = "input normal form-control"  } })
                            </dd>
                        </dl>
																			                        <dl>
                            <dt>家庭住址</dt>
                            <dd>
							    @Html.EditorFor(m => m.ADD_HOME, new { htmlAttributes = new { @class = "input normal form-control"  } })
                            </dd>
                        </dl>
																			                        <dl>
                            <dt>家庭邮编</dt>
                            <dd>
							    @Html.EditorFor(m => m.POST_NO_HOME, new { htmlAttributes = new { @class = "input normal form-control"  } })
                            </dd>
                        </dl>
																			                        <dl>
                            <dt>家庭电话</dt>
                            <dd>
							    @Html.EditorFor(m => m.TEL_NO_HOME, new { htmlAttributes = new { @class = "input normal form-control"  } })
                            </dd>
                        </dl>
																			                        <dl>
                            <dt>手机号</dt>
                            <dd>
							    @Html.EditorFor(m => m.MOBIL_NO, new { htmlAttributes = new { @class = "input normal form-control"  } })
                            </dd>
                        </dl>
																			                        <dl>
                            <dt>电子邮件地址</dt>
                            <dd>
							    @Html.EditorFor(m => m.EMAIL, new { htmlAttributes = new { @class = "input normal form-control"  } })
                            </dd>
                        </dl>
																			                        <dl>
                            <dt>QQ号码</dt>
                            <dd>
							    @Html.EditorFor(m => m.OICQ_NO, new { htmlAttributes = new { @class = "input normal form-control"  } })
                            </dd>
                        </dl>
																			                        <dl>
                            <dt>微信号码</dt>
                            <dd>
							    @Html.EditorFor(m => m.WEIXIN_NO, new { htmlAttributes = new { @class = "input normal form-control"  } })
                            </dd>
                        </dl>
																			                        <dl>
                            <dt>自定义小头像</dt>
                            <dd>
							    @Html.TextBoxFor(m => m.AVATAR,  new { @class = "input normal upload-path" })<div class="upload-box upload-img"></div> 
                            </dd>
                        </dl>
																			                        <dl>
                            <dt>短信提示音</dt>
                            <dd>
                                <div class="rule-single-select">@Html.DropDownListFor(m => m.CALL_SOUND, ViewBag.CALL_SOUNDData as List<SelectListItem>, new { @Class = "form-control" })</div>
                                @* @Html.TextBoxFor(m => m.CALL_SOUND,  new { @class = "input normal upload-path" })<div class="upload-box upload-img"></div>*@
                            </dd>
                        </dl>
																																																																																																																											                        <dl>
                            <dt>手机号码是否公开(0-公开,1-不公开)</dt>
                            <dd>
							    <div class="rule-single-checkbox"> @Html.CheckBoxFor(m => m.MOBIL_NO_HIDDEN,  new { @class = "form-control" }) </div> 
                            </dd>
                        </dl>
																			                        <dl>
                            <dt>禁止登录OA系统(1-禁止,0-不禁止)</dt>
                            <dd>
                                <div class="rule-single-checkbox"> @Html.CheckBoxFor(m => m.NOT_LOGIN, new { @class = "form-control" })</div>
                            </dd>
                        </dl>
																			                        <dl>
                            <dt>禁止查看用户列表(1-禁止,0-不禁止)</dt>
                            <dd>
							    <div class="rule-single-checkbox"> @Html.CheckBoxFor(m => m.NOT_VIEW_USER,  new { @class = "form-control" }) </div> 
                            </dd>
                        </dl>
																			                        <dl>
                            <dt>禁止显示桌面(1-禁止,0-不禁止)</dt>
                            <dd>
							    <div class="rule-single-checkbox"> @Html.CheckBoxFor(m => m.NOT_VIEW_TABLE,  new { @class = "form-control" }) </div> 
                            </dd>
                        </dl>
																			                        <dl>
                            <dt>禁止OA搜索(1-禁止,0-不禁止)</dt>
                            <dd>
							    <div class="rule-single-checkbox"> @Html.CheckBoxFor(m => m.NOT_SEARCH,  new { @class = "form-control" }) </div> 
                            </dd>
                        </dl>
																			                        <dl>
                            <dt>桌面背景图片</dt>
                            <dd>
							    @Html.TextBoxFor(m => m.BKGROUND,  new { @class = "input normal upload-path" })<div class="upload-box upload-img"></div> 
                            </dd>
                        </dl>
																																													                        <dl>
                            <dt>备注</dt>
                            <dd>
							    @Html.TextAreaFor(m => m.REMARK,  new { @class = "input normal form-control"  })
                            </dd>
                        </dl>
																			                        <dl>
                            <dt>个性签名</dt>
                            <dd>
							    @Html.TextAreaFor(m => m.MY_STATUS,  new { @class = "input normal form-control"  })
                            </dd>
                        </dl>
																			                        <dl>
                            <dt>登录次数限制</dt>
                            <dd>
							     @Html.EditorFor(m => m.LIMIT_LOGIN, new { htmlAttributes = new { Class = "input small form-control"  } })
                            </dd>
                        </dl>
																			                        <dl>
                            <dt>用户名片图片</dt>
                            <dd>
							    @Html.TextBoxFor(m => m.PHOTO,  new { @class = "input normal upload-path" })<div class="upload-box upload-img"></div> 
                            </dd>
                        </dl>
																			                        <dl>
                            <dt>用户参数</dt>
                            <dd>
							    @Html.TextAreaFor(m => m.USER_PARA,  new { @class = "input normal form-control"  })
                            </dd>
                        </dl>
																																																										                        <dl>
                            <dt>状态</dt>
                            <dd>
							    <div class="rule-single-checkbox"> @Html.CheckBoxFor(m => m.STATUS,  new { @class = "form-control" }) </div> 
                            </dd>
                        </dl>
										  @Html.HiddenFor(m=>m.USER_ID)
													                     
                    </div>
                    <div class="from-footer">
                        <div class="btn-wrap" style="position: fixed;" >
                            <a class="btn btn-sm btn-primary radius" onclick="savefrom()">
                                <i class="iconfont icon-save"></i>
                                提交保存
                            </a>
                            <a class="btn btn-sm btn-warning radius" onclick="parent.closeTab('6202')">
                                <i class="iconfont icon-fanhui"></i>
                                取消关闭
                            </a>
                        </div>
                    </div>
                }
            </div>
        </div>
    </div>
</div>
@section scripts{
    <script src="@Url.Content("~/Content/JS/common/WdatePicker/WdatePicker.js")"></script>
    <script type="text/javascript" charset="utf-8" src="@Url.Content("~/Content/JS/common/jquery/Validform_v5.3.2_min.js")"></script>
    <script type="text/javascript" charset="utf-8" src="@Url.Content("~/Content/JS/common/artdialog/dialog-plus-min.js")"></script>
    <script type="text/javascript" charset="utf-8" src="@Url.Content("~/Content/JS/common/webuploader/webuploader.min.js")"></script>
    <script type="text/javascript" charset="utf-8" src="@Url.Content("~/Content/editor/ueditor.config.js")"></script>
    <script type="text/javascript" charset="utf-8" src="@Url.Content("~/Content/editor/ueditor.all.min.js")"></script>
    <script type="text/javascript" charset="utf-8" src="@Url.Content("~/Content/editor/lang/zh-cn/zh-cn.js")"></script>
    @*<script type="text/javascript" charset="utf-8" src="../js/uploader.js"></script>*@

    <script src="@Url.Content("~/Content/JS/common/from.js")"></script>
    <script>
        $(function () {
            //初始化表单验证
            $("#settingfrom").initValidform();

        });
        function savefrom() {
            $("#settingfrom").submit();
        }

    </script>

}